Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change way of working on DlqDeserializationExceptionHandler. #75

Conversation

mlmomplot
Copy link
Collaborator

@mlmomplot mlmomplot commented Aug 11, 2023

Change DlqDeserializationExceptionHandler.

1- catch poison pill ☠ - sent a message in DLQ and CONTINUE (if we had trouble to produce in dlq : FAIL)
2- FAIL only if we have a network issue (schema registry timeout for example)

return DeserializationHandlerResponse.CONTINUE;
// here we only have exception like UnknownHostException for example or TimeoutException ...
// example: we cannot ask schema registry De
return DeserializationHandlerResponse.FAIL;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coudl the whole method be optimized for readability, i.e with a finally statement?

@@ -52,7 +59,9 @@ public DeserializationHandlerResponse handle(ProcessorContext processorContext,
return DeserializationHandlerResponse.FAIL;
}

return DeserializationHandlerResponse.CONTINUE;
// here we only have exception like UnknownHostException for example or TimeoutException ...
// example: we cannot ask schema registry De
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfinished comment

Marie-Laure Momplot and others added 4 commits September 6, 2023 17:39
…on pill ☠ and CONTINUE and FAIL only if we had network issue (schema registry timeout for example) 💻
@clvacher clvacher force-pushed the feat/add_retries_for_DlqDeserializationExceptionHandler.java branch from d19248c to a4aefde Compare September 6, 2023 15:53
@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 6, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@loicgreffier loicgreffier added the enhancement This issue or pull request improves a feature label Sep 6, 2023
@loicgreffier loicgreffier changed the title change way of working on DlqDeserializationExceptionHandler. Change way of working on DlqDeserializationExceptionHandler. Sep 6, 2023
@loicgreffier loicgreffier merged commit f8cd553 into main Sep 6, 2023
@loicgreffier loicgreffier deleted the feat/add_retries_for_DlqDeserializationExceptionHandler.java branch September 6, 2023 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This issue or pull request improves a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants